ci: add deploy workflow for TheGraph Network#471
Merged
Le-Caignec merged 19 commits intomainfrom Jul 29, 2025
Merged
Conversation
…twork configuration
Le-Caignec
commented
Jul 25, 2025
packages/subgraph/package.json
Outdated
| "codegen": "graph codegen subgraph.template.yaml", | ||
| "build": "dotenv -e .env -- sh -c 'graph codegen subgraph.template.yaml && graph build subgraph.template.yaml --network ${NETWORK_NAME:-bellecour}'", | ||
| "deploy-theGraph": "graph deploy --node https://api.thegraph.com/deploy/ DataProtector", | ||
| "deploy-chainX": "dotenv -e .env -- sh -c 'graph deploy ${SUBGRAPH_SLUG} subgraph.template.yaml --deploy-key ${SUBGRAPH_DEPLOY_KEY} --network ${SUBGRAPH_NETWORK_NAME} --version-label ${VERSION_LABEL}'", |
Contributor
Author
There was a problem hiding this comment.
I’m not a big fan of this script name. If you have a better suggestion, let me know!
Contributor
Author
There was a problem hiding this comment.
I’m not a big fan of this ci file name. If you have a better suggestion, let me know!
… subgraph template
| working-directory: packages/subgraph | ||
| run: npm ci | ||
|
|
||
| - name: Codegen |
Contributor
There was a problem hiding this comment.
duplicate from subrsubgraph-ci.yml
Contributor
Author
There was a problem hiding this comment.
Yeah, that’s true — but we need it to make the deploy command work.
Co-authored-by: gfournieriExec <100280020+gfournieriExec@users.noreply.github.com>
zguesmi
approved these changes
Jul 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.